
import axios from "axios";

const instance=axios.create()

instance.interceptors.response.use((response)=>{
    console.log(response)
    return response.data
})

const instanceOriginal=axios.create()


const post=async (url,params)=>{
    return instance.post(url,params)
}

const postOriginal=async (url,params,headers={})=>{
    return instanceOriginal.post(url,params,headers)
}

export {post, postOriginal}

